Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy overseer #95

Merged
merged 1 commit into from
Feb 29, 2024
Merged

deploy overseer #95

merged 1 commit into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr HelmRelease: media/overseerr

+++ kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr HelmRelease: media/overseerr

@@ -0,0 +1,129 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2beta2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: overseerr
+  namespace: media
+spec:
+  chart:
+    spec:
+      chart: app-template
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 2.5.0
+  dependsOn:
+  - name: rook-ceph-cluster
+    namespace: rook-ceph
+  - name: volsync
+    namespace: storage
+  - name: vpn-gateway
+    namespace: network
+  install:
+    remediation:
+      retries: 3
+  interval: 30m
+  uninstall:
+    keepHistory: false
+  upgrade:
+    cleanupOnFail: true
+    remediation:
+      retries: 3
+  values:
+    controllers:
+      main:
+        annotations:
+          reloader.stakater.com/auto: 'true'
+        containers:
+          main:
+            env:
+              LOG_LEVEL: info
+              PORT: 80
+              TZ: America/Denver
+            image:
+              repository: ghcr.io/sct/overseerr
+              tag: 1.33.2@sha256:714ea6db2bc007a2262d112bef7eec74972eb33d9c72bddb9cbd98b8742de950
+            probes:
+              liveness:
+                custom: true
+                enabled: false
+                exec:
+                  command:
+                  - sh
+                  - -c
+                  - if [ "$(wget -q -O- http://localhost/api/v1/status | jq -r '.status')"
+                    = 'OK' ]; then exit 0; else exit 1; fi
+                  failureThreshold: 3
+                  initialDelaySeconds: 0
+                  periodSeconds: 10
+                  timeoutSeconds: 1
+              readiness:
+                custom: true
+                enabled: false
+                exec:
+                  command:
+                  - sh
+                  - -c
+                  - if [ "$(wget -q -O- http://localhost/api/v1/status | jq -r '.status')"
+                    = 'OK' ]; then exit 0; else exit 1; fi
+                  failureThreshold: 3
+                  initialDelaySeconds: 0
+                  periodSeconds: 10
+                  timeoutSeconds: 1
+              startup:
+                enabled: false
+            resources:
+              limits:
+                memory: 750Mi
+              requests:
+                cpu: 100m
+                memory: 250Mi
+            securityContext:
+              allowPrivilegeEscalation: false
+              capabilities:
+                drop:
+                - ALL
+              readOnlyRootFilesystem: true
+        pod:
+          securityContext:
+            fsGroup: 568
+            fsGroupChangePolicy: OnRootMismatch
+            runAsGroup: 568
+            runAsNonRoot: true
+            runAsUser: 568
+    defaultPodOptions:
+      annotations:
+        setGateway: 'true'
+    ingress:
+      main:
+        className: internal
+        enabled: true
+        hosts:
+        - host: overseerr.
+          paths:
+          - path: /
+            service:
+              name: main
+              port: http
+        tls:
+        - hosts:
+          - overseerr.
+    persistence:
+      config:
+        enabled: true
+        existingClaim: overseerr
+        globalMounts:
+        - path: /app/config
+      tmp:
+        type: emptyDir
+    service:
+      main:
+        ports:
+          http:
+            port: 80
+
--- kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr PersistentVolumeClaim: media/overseerr

+++ kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr PersistentVolumeClaim: media/overseerr

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  labels:
+    app.kubernetes.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: overseerr
+  namespace: media
+spec:
+  accessModes:
+  - ReadWriteOnce
+  dataSourceRef:
+    apiGroup: volsync.backube
+    kind: ReplicationDestination
+    name: overseerr-dst
+  resources:
+    requests:
+      storage: 1Gi
+  storageClassName: ceph-block
+
--- kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr ReplicationDestination: media/overseerr-dst

+++ kubernetes/apps/media/overseerr/app Kustomization: flux-system/overseerr ReplicationDestination: media/overseerr-dst

@@ -0,0 +1,23 @@

+---
+apiVersion: volsync.backube/v1alpha1
+kind: ReplicationDestination
+metadata:
+  labels:
+    app.kubernetes.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/name: overseerr
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: overseerr-dst
+  namespace: media
+spec:
+  restic:
+    accessModes:
+    - ReadWriteOnce
+    cacheCapacity: 1Gi
+    capacity: 1Gi
+    copyMethod: Snapshot
+    repository: overseerr-restic-secret
+    storageClassName: ceph-block
+    volumeSnapshotClassName: csi-ceph-blockpool
+  trigger:
+    manual: restore-once
+

Copy link

--- HelmRelease: media/overseerr Service: media/overseerr

+++ HelmRelease: media/overseerr Service: media/overseerr

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: overseerr
+  labels:
+    app.kubernetes.io/instance: overseerr
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: overseerr
+    app.kubernetes.io/service: overseerr
+spec:
+  type: ClusterIP
+  ports:
+  - port: 80
+    targetPort: 80
+    protocol: TCP
+    name: http
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: overseerr
+    app.kubernetes.io/name: overseerr
+
--- HelmRelease: media/overseerr Deployment: media/overseerr

+++ HelmRelease: media/overseerr Deployment: media/overseerr

@@ -0,0 +1,78 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: overseerr
+  labels:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: overseerr
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: overseerr
+  annotations:
+    reloader.stakater.com/auto: 'true'
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: Recreate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: main
+      app.kubernetes.io/name: overseerr
+      app.kubernetes.io/instance: overseerr
+  template:
+    metadata:
+      annotations:
+        setGateway: 'true'
+      labels:
+        app.kubernetes.io/component: main
+        app.kubernetes.io/instance: overseerr
+        app.kubernetes.io/name: overseerr
+    spec:
+      enableServiceLinks: true
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      securityContext:
+        fsGroup: 568
+        fsGroupChangePolicy: OnRootMismatch
+        runAsGroup: 568
+        runAsNonRoot: true
+        runAsUser: 568
+      hostIPC: false
+      hostNetwork: false
+      hostPID: false
+      dnsPolicy: ClusterFirst
+      containers:
+      - env:
+        - name: LOG_LEVEL
+          value: info
+        - name: PORT
+          value: '80'
+        - name: TZ
+          value: America/Denver
+        image: ghcr.io/sct/overseerr:1.33.2@sha256:714ea6db2bc007a2262d112bef7eec74972eb33d9c72bddb9cbd98b8742de950
+        name: main
+        resources:
+          limits:
+            memory: 750Mi
+          requests:
+            cpu: 100m
+            memory: 250Mi
+        securityContext:
+          allowPrivilegeEscalation: false
+          capabilities:
+            drop:
+            - ALL
+          readOnlyRootFilesystem: true
+        volumeMounts:
+        - mountPath: /app/config
+          name: config
+        - mountPath: /tmp
+          name: tmp
+      volumes:
+      - name: config
+        persistentVolumeClaim:
+          claimName: overseerr
+      - emptyDir: {}
+        name: tmp
+
--- HelmRelease: media/overseerr Ingress: media/overseerr

+++ HelmRelease: media/overseerr Ingress: media/overseerr

@@ -0,0 +1,26 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: overseerr
+  labels:
+    app.kubernetes.io/instance: overseerr
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: overseerr
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - overseerr.
+  rules:
+  - host: overseerr.
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: overseerr
+            port:
+              number: 80
+

@jgilfoil jgilfoil merged commit ad84100 into main Feb 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant